Skip to content

feat: moving cache sync timeout to controller level #1576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 28, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 27, 2022

this makes sense if there are multiple controlelrs, where this value might vary

@csviri csviri self-assigned this Oct 27, 2022
@csviri csviri requested a review from metacosm October 27, 2022 12:43
@@ -133,4 +135,8 @@ public Stream<R> list(Predicate<R> predicate) {
return cache.list(predicate);
}

public void setControllerConfiguration(ControllerConfiguration<P> controllerConfiguration) {
Copy link
Collaborator

@metacosm metacosm Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is missing some tests because if you remove this method, everything still builds fine and yet, the controllerConfiguration is not properly initialized. And actually, this method is never called anywhere in the code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhh, good catch, forgot t remove that, before it was used.

Copy link
Collaborator Author

@csviri csviri Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.

(The InformerRelatedBehaviorITS would fail if this would not work)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not working right, though, because now the controllerConfiguration is never set… So why even record it and pass it to initSources?

Copy link
Collaborator Author

@csviri csviri Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh yes, now that part is also cleaned up :)

this makes sense if there are multiple controlelrs, where this value might vary
@csviri csviri force-pushed the sync-timeout-controller branch from 669679d to e85f572 Compare October 27, 2022 15:31
@csviri csviri requested a review from metacosm October 27, 2022 15:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 34 Code Smells

33.1% 33.1% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit 0cf4dd3 into next Oct 28, 2022
@csviri csviri deleted the sync-timeout-controller branch October 28, 2022 07:28
@csviri csviri linked an issue Oct 28, 2022 that may be closed by this pull request
csviri added a commit that referenced this pull request Oct 30, 2022
csviri added a commit that referenced this pull request Oct 31, 2022
csviri added a commit that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event Source Sync Timeout
2 participants